'use strict';
var WXBizDataCrypt = require('./WXBizDataCrypt')
exports.main = async (event) => {
	//event为客户端上传的参数
	console.log('event : ', event)
	var pc = new WXBizDataCrypt('wx21661d87cdd45c05', event.sessionKey);
	var data = pc.decryptData(event.encryptedData , event.iv);
	//返回数据给客户端
	return data;
};
